From 9ecfffa830f1afa58fb562f450b79438d3c9b0e1 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Sat, 8 Aug 2015 23:05:53 +0200 Subject: [PATCH] Formatting fixes --- gtk/gtkplacessidebar.c | 37 +++++++++++++++++++------------------ 1 file changed, 19 insertions(+), 18 deletions(-) diff --git a/gtk/gtkplacessidebar.c b/gtk/gtkplacessidebar.c index 1f00bda337..0e64cd425f 100644 --- a/gtk/gtkplacessidebar.c +++ b/gtk/gtkplacessidebar.c @@ -2605,7 +2605,7 @@ unmount_mount_cb (GObject *source_object, static void notify_unmount_done (GMountOperation *op, - const gchar *message) + const gchar *message) { GApplication *application; gchar *notification_id; @@ -2618,29 +2618,30 @@ notify_unmount_done (GMountOperation *op, notification_id = g_strdup_printf ("gtk-mount-operation-%p", op); g_application_withdraw_notification (application, notification_id); - if (message != NULL) { - GNotification *unplug; - GIcon *icon; - gchar **strings; - - strings = g_strsplit (message, "\n", 0); - icon = g_themed_icon_new ("media-removable"); - unplug = g_notification_new (strings[0]); - g_notification_set_body (unplug, strings[1]); - g_notification_set_icon (unplug, icon); - - g_application_send_notification (application, notification_id, unplug); - g_object_unref (unplug); - g_object_unref (icon); - g_strfreev (strings); - } + if (message != NULL) + { + GNotification *unplug; + GIcon *icon; + gchar **strings; + + strings = g_strsplit (message, "\n", 0); + icon = g_themed_icon_new ("media-removable"); + unplug = g_notification_new (strings[0]); + g_notification_set_body (unplug, strings[1]); + g_notification_set_icon (unplug, icon); + + g_application_send_notification (application, notification_id, unplug); + g_object_unref (unplug); + g_object_unref (icon); + g_strfreev (strings); + } g_free (notification_id); } static void notify_unmount_show (GMountOperation *op, - const gchar *message) + const gchar *message) { GApplication *application; GNotification *unmount; -- 2.30.2